//
//  LevelData.m
//  linkingGame
//
//  Created by 李佳 on 15/4/5.
//  Copyright (c) 2015年 com.jinWu. All rights reserved.
//

#import "ClassLevelData.h"

@implementation ClassLevelData

@synthesize gameMapArray;
@synthesize imageDatas;
@synthesize maxRow; //最大行数
@synthesize maxClo; //最大列数
@synthesize curRowNum; //当前行
@synthesize curCloNum; //当前列
@synthesize typeCount; //图标个数
@synthesize gameMode;
@synthesize totalTime;

- (instancetype)init
{
    if (self = [super init])
    {
        self.gameMapArray = [[NSMutableArray alloc] init];
        self.imageDatas = [[NSMutableArray alloc] init];
        CGRect screenRect = [UIScreen mainScreen].bounds;
        self.maxClo = (screenRect.size.width - rightLeftEmptySpace) /  GetBtnSizeByDevice();//这里可以忽略每个格子之间的一像素差距。而且向前取整
        self.maxRow = (screenRect.size.height - topLeftEmptySpace - GetbtmLeftEmptySpace()) / GetBtnSizeByDevice();
        if (self.maxClo * self.maxRow % 2 != 0)
        {
            self.maxRow--;
        }
        self.gameMode = KClassicMode;
    }
    return self;
}

@end
